home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kbd.postrm < prev    next >
Text File  |  2009-06-24  |  454b  |  26 lines

  1. #! /bin/sh -e
  2.  
  3. abort_rm_conffile () {
  4.     CONFFILE="$1"
  5.     ACTION="$2"
  6.  
  7.     if [ "$ACTION" = remove ]; then
  8.         if [ -e "$CONFFILE".moved-by-preinst ]; then
  9.             echo "Aborting removal of obsolete conffile $CONFFILE"
  10.             mv -f "$CONFFILE".moved-by-preinst "$CONFFILE"
  11.         fi
  12.     fi
  13. }
  14.  
  15. case $1 in
  16.     abort-install|abort-upgrade)
  17.         if dpkg --compare-versions "$2" lt 1.14.1-4ubuntu3; then
  18.             abort_rm_conffile /etc/init.d/console-screen.kbd.sh remove
  19.         fi
  20.         ;;
  21. esac
  22.  
  23.  
  24.  
  25. exit 0
  26.